package com.puyuba.puyuba.view.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.puyuba.puyuba.R;
import com.puyuba.puyuba.bean.FindTanListBean;
import com.pyb.java.commonutil.utils.DateUtils;

public class FindTransactionAdatper extends BaseQuickAdapter<FindTanListBean.DataBean,BaseViewHolder> {

    public FindTransactionAdatper(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, FindTanListBean.DataBean item) {
        helper.setText(R.id.tv_user_edu,"报名课程："+item.getCategory()+"——"+item.getEdulevelid());
        helper.setText(R.id.tv_user_info,"已交学费："+item.getPaid()+"元");
        helper.setText(R.id.tv_time, "成交时间："+DateUtils.fromLongToDate("yyyy-MM-dd hh:mm", item.getGetdatetime()*1000));
        helper.setText(R.id.tv_user_name,item.getName());

    }


}
